Personal Webpage Engine
Copyright(c) 2008 Mihail Kochanov
You can contact me at StilgarAD@yahoo.com

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.



This is the personal web page engine written by Mihail Kochanov (a.k.a. Stilgar). It is my first project using .NET 3.5 so it may (ok it is sure to) be full of errors and bad practices. The code is written using Visual Web Developer 2008 Express Edition. You can download it here - http://go.microsoft.com/fwlink/?LinkId=104679 . You will also need SQL Server. I have used SQL Server Express which I think will also be installed with Web Developer Experss. You may have problems with the folder paths when loading the project. You may need to manually edit the sln file to fix this.

How to deploy the database?

There are two ways to deploy the database. You can just attatch the mdf file to the SQL Server instance or use the scripts in dbscript.sql to create the magnificent tables in that glorious database.

In the mdf version of the database there are some users and some random test data. User Stilgar is admin and it's password is "asdfg".


The following keys are added in the web config:

<add key="NewsItemImageWidth" value="64"/>        - width to which the news item image should be resized before going in the database
<add key="NewsItemImageHeight" value="64"/>       - height to which the news item image should be resized before going in the database
<add key="AdminUsername" value="Stilgar"/>        - username which is in the Admin role right after registering. Can be used to register the first admin. Will not affect already registered users.
<add key="AutoApproveNewUser" value="True"/>      - determines if new users should be activated automatically upon registration or they should be activated by admin
<add key="LogFileName" value="~/Admin/Log.txt"/>  - the path to the log file
<add key="TimeDifference" value="2"/>             - the time difference to be added when displaying time

If you want to insert HTML tags in standart posts you can replace the < > with [ ]. It will work as long as you do not use the closing tags within the tag (there is no way to escape it right now), use only a single space to separate attributes and use ' instead of " to surround attribute values. I am still not sure if I should fix these annoyances because it will make the code much more complicated and I do not think these are a problem right now because the feature is only intended to be used with hyperlinks.

When generating LINQ to SQL classes remember to set the update check policy for the CommentsPolicy property of the NewsItem class to Never.

Mihail Kochanov